From 69d6b46be7641938ce2c50e050b1271cababd3e4 Mon Sep 17 00:00:00 2001 From: justbur Date: Thu, 9 Jul 2015 08:22:56 -0400 Subject: [PATCH] Remove mode-line and tweak max-height max-height for side-window could still be more precise, but this seems to work --- which-key.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/which-key.el b/which-key.el index 35147934208..49f1f4f6b0b 100644 --- a/which-key.el +++ b/which-key.el @@ -157,7 +157,7 @@ Used when `which-key-popup-type' is frame.") (with-current-buffer which-key--buffer (setq-local cursor-type nil) (setq-local cursor-in-non-selected-windows nil) - (setq-local mode-line-format "")) + (setq-local mode-line-format nil)) (setq which-key--setup-p t)) ;;;###autoload @@ -375,8 +375,7 @@ of the intended popup." (cons ;; height (if (member which-key-side-window-location '(left right)) - (- (frame-height) 1) ; 1 is for minibuffer - ;; (window-height (minibuffer-window)) + (- (frame-height) (window-text-height (minibuffer-window)) 1) ;; 1 is a kludge to make sure there is no overlap ;; (window-mode-line-height which-key--window)) ;; FIXME: change to something like (min which-*-height (calculate-max-height)) which-key-side-window-max-height) -- 2.30.2